package com.chen.thread.service.impl;

import com.chen.thread.dto.User2;
import com.chen.thread.dto.User3;
import com.chen.thread.mapper.User3Mapper;
import com.chen.thread.service.User3Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class User3ServiceImpl implements User3Service {

    @Resource
    private User3Mapper user3Mapper;
//    @Override
//    public boolean insert() {
//        return user3Mapper.insert()>0;
//    }

    @Override
    public boolean insert(User3 user) {
        return user3Mapper.insert(user)>0;
    }

    @Override
    public boolean insertForeach(List<User2> list) {
        return user3Mapper.insertForeach(list)>0;
    }

    @Override
    public boolean delete() {
        return user3Mapper.delete()>0;
    }
}
